<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditOpiniaoFotoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditOpiniaoFotoLabel_idOpFoto}" for="idOpFoto" />
                    <h:inputText id="idOpFoto" value="#{opiniaoFotoController.selected.idOpFoto}" title="#{bundle.EditOpiniaoFotoTitle_idOpFoto}" required="true" requiredMessage="#{bundle.EditOpiniaoFotoRequiredMessage_idOpFoto}"/>
                    <h:outputLabel value="#{bundle.EditOpiniaoFotoLabel_opiniao}" for="opiniao" />
                    <h:inputText id="opiniao" value="#{opiniaoFotoController.selected.opiniao}" title="#{bundle.EditOpiniaoFotoTitle_opiniao}" required="true" requiredMessage="#{bundle.EditOpiniaoFotoRequiredMessage_opiniao}"/>
                    <h:outputLabel value="#{bundle.EditOpiniaoFotoLabel_fkUsuario}" for="fkUsuario" />
                    <h:selectOneMenu id="fkUsuario" value="#{opiniaoFotoController.selected.fkUsuario}" title="#{bundle.EditOpiniaoFotoTitle_fkUsuario}" required="true" requiredMessage="#{bundle.EditOpiniaoFotoRequiredMessage_fkUsuario}">
                        <f:selectItems value="#{usuarioController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditOpiniaoFotoLabel_fkFoto}" for="fkFoto" />
                    <h:selectOneMenu id="fkFoto" value="#{opiniaoFotoController.selected.fkFoto}" title="#{bundle.EditOpiniaoFotoTitle_fkFoto}" required="true" requiredMessage="#{bundle.EditOpiniaoFotoRequiredMessage_fkFoto}">
                        <f:selectItems value="#{fotosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditOpiniaoFotoLabel_data}" for="data" />
                    <h:inputText id="data" value="#{opiniaoFotoController.selected.data}" title="#{bundle.EditOpiniaoFotoTitle_data}" required="true" requiredMessage="#{bundle.EditOpiniaoFotoRequiredMessage_data}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                </h:panelGrid>
                <h:commandLink action="#{opiniaoFotoController.update}" value="#{bundle.EditOpiniaoFotoSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditOpiniaoFotoViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{opiniaoFotoController.prepareList}" value="#{bundle.EditOpiniaoFotoShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditOpiniaoFotoIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
